package com.carol.lmsbe.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 设备维修更新请求DTO
 */
@Data
public class EquipmentRepairUpdateRequest {

    @NotNull(message = "维修记录ID不能为空")
    private Long id;

    @NotNull(message = "维修日期不能为空")
    private LocalDate repairDate;

    @NotBlank(message = "维修厂商不能为空")
    private String repairCompany;

    @NotNull(message = "维修费用不能为空")
    @Positive(message = "维修费用必须大于0")
    private BigDecimal repairCost;

    @NotNull(message = "处理人ID不能为空")
    private Long handlerId;

    private String description;

    private String responsiblePerson;

    private String repairResult;

    private String status;

    private String remark;
}
